<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>美滴滴</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link type="text/css" rel="stylesheet" media="screen" href="__PUBLIC__/app/css/style.css{$JSDEBUG}"/>
    <link type="text/css" rel="stylesheet" media="screen" href="__PUBLIC__/app/css/media.css{$JSDEBUG}"/>
    <script type="text/javascript" src="__PUBLIC__/app/js/jquery-1.9.1.min.js"></script>
    <style>
		body{padding-top: 0px;}
	</style>
</head>
<body style="background:#fff;">
    <form action="{:U('/Beautician/login')}" method="post">
	 	<section>
	      <div class="login mrslogin">
	      <h1><img src="__PUBLIC__/app/images/loginlogo.png"></h1>
	        <ul>
	          <li><input type="tel" name="mobile" placeholder="请输入手机号码" class="phone" ></li>
	          <li><input type="password" name="password" placeholder="请输入6位以上密码" class="code">          </li>
	          <li><a href="javascript:;" class="dllogin">立即登陆</a></li>  <!--填写完addClass("addbg")-->
	        </ul>
	        <a href="{:U('Beautician/repeat')}" class="repeat">重置密码？</a>
	      </div>
		</section>
	</form>
	<if condition="$show">
	<div class="busy busydown">
        <p>修改密码成功</p>
    </div>
    </if>
<script>
function abc(){
	$('#huoqu').hide();
 	$('.time').show();
 	var sec = $(".time span").text();
    $(".time span").text(--sec);
	if (sec >= 1){
		setTimeout("abc();", 1000);
	}else{
		$('#huoqu').show();
		$('.time').hide();
	}
	
	return false;
}
function busyer(){
  	$(".busy").removeClass('busydown');
  	$(".busy").addClass('busyup');
}
$(function () {
	setTimeout('busyer();',2000)
	var subming;
	$('.dllogin').click(function () {
		if (subming && subming.state() == 'pending') {
			return false;
		}
		
		var form = $('form').get(0);
		subming = $.ajax({
			url: form.action,
			data: $(form).serialize(),
			type: 'post',
			dataType: 'json',
			success: function (result) {
				if (result.status == '1') {
					window.location.href = result.redirect;
				} else {
					alert(result.message);
					return false;
				}
			},
			error: function () {
				alert('登录失败');
			}
		});
	});
})
</script>
</body>
	
</html>